#include <bits/stdc++.h>
using namespace std;

#include <bits/extc++.h>
using namespace __gnu_pbds;

using llt = long long;
using pii = pair<int, int>;
using vi = vector<int>;
using vvi = vector<vi>;

int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
    ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(0);
    int nofkase = 1;
    // cin >> nofkase;
    while(nofkase--){
        int a, b, c, d, e; cin >> a >> b >> c >> d >> e;
        int  A, B, C, D; cin >> A >> B >> C >> D;
        int ans = A * a + B * b + c * C - d * D;
        if(ans > e) cout << "YES\n";
        else cout << "NO\n";
    }
    return 0;
}